@layout("/common/_container.html"){
<link rel="stylesheet" href="${ctxPath}/static/layui/css/layui.css" media="all">
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>创建消息</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <form class="layui-form" action="" id="pushForm">
                        <div class="layui-form-item">
                            <label class="layui-form-label">标题</label>
                            <div class="layui-input-block">
                                <input id="title" type="text" name="title" required  lay-verify="required"
                                       placeholder="请输入标题，最多30个字" autocomplete="off" class="layui-input"
                                       style="width: 300px;">
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label" style="width: 100px;">消息内容</label>
                            <div class="layui-input-block">
                                <textarea id="content" name="content" lay-verify="required" placeholder="请输入内容，最多100个字"
                                          class="layui-textarea" style="width: 300px;"></textarea>
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <label class="layui-form-label" style="width: 100px;">跳转动作</label>
                            <div class="layui-input-block" style="width: 140px;">
                                <select id="actionFlag" name="actionFlag" lay-filter="actionFlag" lay-verify="required">
                                    <option value="0">不需跳转</option>
                                    <option value="1">立即购买</option>
                                    <option value="2">马上推荐</option>
                                    <option value="3">跳转H5网页</option>
                                </select>
                            </div>
                        </div>

                        <div class="layui-form-item" id="boxLink" style="display: none">
                            <label class="layui-form-label" style="width: 100px;">跳转地址</label>
                            <div class="layui-input-block">
                                <input id="linkUrl" type="url" name="linkUrl"
                                       placeholder="需要跳转的H5链接" class="layui-input"
                                       style="width: 300px;">
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit lay-filter="formPushMsg">立即推送</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/layui/layui.js" charset="utf-8"></script>
<script src="${ctxPath}/static/modular/vpn_push_msg/vpnPushMsg/vpnEditPushMsg.js"></script>
@}
